package com.emergency.db.domain.nuclear;

import com.emergency.base.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;


import javax.persistence.*;

//涉核目标场内信息
@Entity
@Table(name = "bas_nuclear_inside")
public class NuclearInside extends BaseEntity {
    private String name;//涉核目标名称

    @JsonIgnore
    @OneToOne(targetEntity = Nuclear.class, fetch = FetchType.LAZY)
    @JoinColumn(name = "nuclear_id", referencedColumnName = "id")
    private Nuclear nuclear;

    private double coreTemp;//堆芯温度

    private double coreOutTemp;//堆芯出口温度

    private double loopPress;//一回路平均压力

    private double loopSpeed;//一回路液体流速

    private double steamValve;//蒸汽发生器阀门完整性，百分比

    private double steamPress;//蒸汽发生器内平均压力

    private double pond;//堆坑积水量

    //临时属性
    @Transient
    private Vessel vessel;

    @Transient
    private Shell shell;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Nuclear getNuclear() {
        return nuclear;
    }

    public void setNuclear(Nuclear nuclear) {
        this.nuclear = nuclear;
    }

    public double getCoreTemp() {
        return coreTemp;
    }

    public void setCoreTemp(double coreTemp) {
        this.coreTemp = coreTemp;
    }

    public double getCoreOutTemp() {
        return coreOutTemp;
    }

    public void setCoreOutTemp(double coreOutTemp) {
        this.coreOutTemp = coreOutTemp;
    }

    public double getLoopPress() {
        return loopPress;
    }

    public void setLoopPress(double loopPress) {
        this.loopPress = loopPress;
    }

    public double getLoopSpeed() {
        return loopSpeed;
    }

    public void setLoopSpeed(double loopSpeed) {
        this.loopSpeed = loopSpeed;
    }

    public double getSteamValve() {
        return steamValve;
    }

    public void setSteamValve(double steamValve) {
        this.steamValve = steamValve;
    }

    public double getSteamPress() {
        return steamPress;
    }

    public void setSteamPress(double steamPress) {
        this.steamPress = steamPress;
    }

    public double getPond() {
        return pond;
    }

    public void setPond(double pond) {
        this.pond = pond;
    }

    public Vessel getVessel() {
        return vessel;
    }

    public void setVessel(Vessel vessel) {
        this.vessel = vessel;
    }

    public Shell getShell() {
        return shell;
    }

    public void setShell(Shell shell) {
        this.shell = shell;
    }
}
